package org.future.task.core.handler;

import org.future.task.core.flow.FlowEntry;

import java.util.ArrayList;
import java.util.List;

public class HavingTask extends RunnableTask<FlowEntry> {

    @Override
    public void runner(List<FlowEntry> runner) throws Exception {

        FlowEntry flowEntry = new FlowEntry();
        List<?> data = new ArrayList<>();
        for (int i = 0; i < runner.size(); i++) {
            data.add(runner.get(i).getData());
        }
        flowEntry.setTaskObj(data);
        execute(flowEntry);
    }

    @Override
    public void execute(FlowEntry flowEntry) throws Exception {

    }

}
